package com.dailyblue.java.spring.security.security03.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.java.spring.security.security03.bean.Powers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PowersMapper extends BaseMapper<Powers> {
    @Select("select * from powers where id in (select pid from user_power where uid=#{id}) ")
    List<Powers> findPowersByUserId(int id);
}
